FROM adoptopenjdk/openjdk15

RUN apt-get update && \
    apt-get -qqy install python3

COPY ./qap.jar /

RUN mkdir /test-output

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

ENTRYPOINT ["java","-server","-XX:-UseGCOverheadLimit","-XX:+DisableExplicitGC","-XX:SurvivorRatio=1","-XX:LargePageSizeInBytes=128M","-XX:SoftRefLRUPolicyMSPerMB=0","-Djava.security.egd=file:/dev/./urandom","--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED","--add-opens=java.base/java.lang=ALL-UNNAMED","-jar","/qap.jar"]
